﻿@model PhoneBilling.Models.UserMgtModel
@{
    ViewBag.Title = "用户管理";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    function del(id,name) {
        var r = confirm("确认删除用户：" + name + "吗？");
        if (r == true) {
            window.location.href = "/Manage/UserDelete?id=" + id;
        }
        return false;
    }
</script>
@if (Model.Message != null){<h2>@Model.Message</h2>}
<p id="btn-create" class="box"><a href="/Manage/UserEdit"><span>新增用户</span></a></p>
@{
    var grid = new WebGrid(source: Model.UserList, rowsPerPage: 30);
}
@grid.GetHtml(
    alternatingRowStyle: "bg",
    columns: grid.Columns
    (
        grid.Column("Name", "用户名")
    )
)
